import request from '@/utils/request'

// 查询慰问金申请列表
export function listCondolenceMoneyApplication(query) {
  return request({
    url: '/reimbursement/CondolenceMoneyApplication/list',
    method: 'get',
    params: query
  })
}

// 查询慰问金申请详细
export function getCondolenceMoneyApplication(id) {
  return request({
    url: '/reimbursement/CondolenceMoneyApplication/' + id,
    method: 'get'
  })
}

// 新增慰问金申请
export function addCondolenceMoneyApplication(data) {
  return request({
    url: '/reimbursement/CondolenceMoneyApplication',
    method: 'post',
    data: data
  })
}

// 修改慰问金申请
export function updateCondolenceMoneyApplication(data) {
  return request({
    url: '/reimbursement/CondolenceMoneyApplication',
    method: 'put',
    data: data
  })
}

// 删除慰问金申请
export function delCondolenceMoneyApplication(id) {
  return request({
    url: '/reimbursement/CondolenceMoneyApplication/' + id,
    method: 'delete'
  })
}
